﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="car-result.aspx.cs" Inherits="car_result" MasterPageFile="~/Mobile.master" Async="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<form id="Form1" runat="server">
<section>
<header id="header">
<nav id="nav">
<a href="default.aspx"><div class="branding"></div></a>
<div class="navpages">
<a href="car-quote.aspx">
<asp:Image ID="imgTop" runat="server" ImageUrl="images/button/topnav-back.png" width="49" height="29" border="0" alt="back" BorderWidth="0"  /></a>
</div>
</nav>
</header>
</section>

<section id="body">
<div class="body">
<h1>Free Car Insurance Quote</h1>
<br/>
<div class="form">
<div class="topResults"></div>
<div class="body">
<div class="pad">
<a href="car-quote-details.aspx">VIEW & EDIT ASSUMPTIONS</a>
<asp:Label runat="server" ID="lblNoResultMessage" Font-Bold="true" Text="" />
<asp:DataList runat="server" ID="dlCarResults" CssClass="center"
        onitemdatabound="dlCarResults_ItemDataBound" 
        onitemcommand="dlCarResults_ItemCommand">        
<ItemTemplate>
<!-- Quote Item | Starts -->
<div class="quoteItem">
<div class="header"></div>
<div class="headerTitle">
<div class="pad" style="padding-top:4px;">
<asp:HyperLink ID="hlnkViewTop" runat="server" NavigateUrl="#">
<div class="left"><asp:Image ID="imgProviderCompanyLogo" runat="server" ImageUrl="~/images/bg/logo.png" AlternateText="Liberty" Width="90"/><asp:Label runat="server" Text="Insurer" ID="lblProviderCompanyName" Visible="false"></asp:Label>
</div>
<div class="right price">
<asp:Label runat="server" ID="lblPremiumAmount" Text="-" Font-Bold="true"></asp:Label>

</div>
</asp:HyperLink>


</div>
</div>
<div class="bodyResult">
<div class="pad">
<asp:Label runat="server" ID="lblProviderCompanyID" Text="0" Visible="false" />
<asp:Label runat="server" ID="lblCarResultID" Text="0" Visible="false" />

<asp:Label runat="server" Text="Coverage" ID="lblPlanName"></asp:Label>
<div class="separator_7px"></div>

<%--<div class="CallUsNow">
<asp:HyperLink ID="HyperLink1" NavigateUrl="tel:022688222" runat="server">
<asp:Image ID="imgCallUsNow" runat="server" ImageUrl="~/images/button/callusnow_single.png" AlternateText="Call Us Now!" Width="190px" Height="30" BorderWidth="0" />
</asp:HyperLink>
</div>
--%>
<div class="EmailQuote">
<asp:ImageButton ID="imgCallMe" runat="server" ImageUrl="~/images/button/callme_single.png" CommandName="CallMe" alt="Call Me" Width="190px" Height="30" BorderWidth="0" />
</div>
<div class="separator_7px"></div>
<div class="EmailQuote">
<asp:ImageButton ID="imgEmailQuote" runat="server" ImageUrl="~/images/button/emailquote_single.png" CommandName="Email" alt="Email Quote" Width="190px" Height="30" BorderWidth="0" />
</div>
<div class="separator_7px"></div>
</div>
</div>
<div class="footer">
<%--<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/button/view-details.png" CommandName="ViewDetails" alt="View Details" BorderWidth="0" />--%>
<asp:HyperLink ID="hlnkView" runat="server" NavigateUrl="~/car-result-detail.aspx?" ImageUrl="~/images/button/view-details.png" Text="" Width="220px"></asp:HyperLink>
</div>
</div>
<div class="separator_15px"></div>
<!-- Quote Item | Ends -->
</ItemTemplate>
</asp:DataList>
</div>
</div>
<asp:Panel ID="pnlOffline" runat="server" Visible="false" >
<span style="font-size:small;">Engage an insurance broker to find you the best deal by entering you vehicle number below
<br />Please allow 1-2 working days for the broker team to search the market for competitive quotes.<br />
</span><br />
<asp:TextBox ID="txtVehicleNo" runat="server" Text="Your vehicle number"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvVehicleNo" runat="server" CssClass="validationErrorControl" ErrorMessage="" InitialValue="Your vehicle number" ValidationGroup="offline" ControlToValidate="txtVehicleNo" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvVehicleNoSave" runat="server" CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="offline" ControlToValidate="txtVehicleNo" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:Button ID="btnSaveOffline" runat="server" Text="Submit" OnClick="btnSaveOffline_Click" ValidationGroup="offline"/>
</asp:Panel>
<asp:TextBox ID="txtFlag" runat="server" Visible="false" Text="0"></asp:TextBox>
<asp:TextBox ID="txtCarMakeModel" runat="server" Visible="false" Text="0"></asp:TextBox>
<div class="bottom"></div>
</div>
</div>
</section>
</form>

    <script type="text/javascript" >
        function DefaultVehicleNo(TextBoxControl, TextBoxEvent) {
            if (TextBoxControl.value.length == 0 && TextBoxEvent.type == "blur") {
                TextBoxControl.value = "Your vehicle number";
            }
        }

        function ClearText(TextBoxControl, TextBoxEvent) {
            if (TextBoxControl.value == "Your vehicle number") {
                TextBoxControl.value = "";
            }
           
        }
    </script>
    
</asp:Content>

